Page({
  data:{
    // text:"这是一个页面"
    focus:false,
    isShowView:true,
    messages:[
      {
        title:"Krystal",
        url:"https://s1.imagehub.cc/images/2023/09/29/bdd49ebfda01e480c8f38fb24190dde.jpeg",
        message:"我马上去弄",
        time:"21:15",
        count:0
      },
      {
        title:"娃哈哈你的爽歪歪呢",
        url:"https://s1.imagehub.cc/images/2023/09/30/cf694c676010c9ea1356c508481e0a5.jpeg",
        message:"什么鬼，我有支付宝",
        time:"15:15",
        count:5
      },
      {
        title:"反正傻的不是我",
        url:" https://s1.imagehub.cc/images/2023/10/01/fb0d8d00e27e3e0487b1f9a320d391c.jpeg",
        message:"哈哈哈，我要一统江湖啦，",
        time:"15:15",
        count:22
        },
      {
        title:"wwww",
        url:" https://s1.imagehub.cc/images/2023/10/01/239846f01e91804d4c1c4604e31784b.jpeg",
        message:"这个我要了",
        time:"14:23",
        count:0
      },
      {
        title:"喵喵",
        url:"https://s1.imagehub.cc/images/2023/09/29/6ecbce21c1b1caeff3acf71e082f705.jpeg",
         message:"嗯好",
        time:"12:13",
        count:1
         },
      {
        title:"雷",
        url: "https://s1.imagehub.cc/images/2023/10/01/6c55c10bb31121cac36b7d1ccd80dd3.jpeg",
        message:"看你还嘚瑟",
        time:"12:11",
        count:0
        },
      {
        title:"....",
        url:"https://s1.imagehub.cc/images/2023/10/01/e49cb02ada9d9f321ee9a5e8858ad2a.jpeg",
        message:"kkkk，哈哈哈",
        time:"11:35",
        count:0
        },
      {
        title:"正在通话中",
        url:"https://s1.imagehub.cc/images/2023/10/01/94c9a64608aa11401599ce16ed08b0f.jpeg",
        message:"行",
        time:"08:23",
        count:0
        },
        
        
        
       
       
    ]
  },
  lt(e){
    // console.log(e.currentTarget.dataset.bookname)
    wx.navigateTo({
      url: '/pages/liaotian/liaotian'
    })
  },
  bindtap:function(event){
wx.navigateTo({
  url: "search/search"
})
  },
  bindfocus:function(){
    this.setData({
         focus:true
    })
    this.setData({
      isShowView:false
    })
  },
  bindblur:function(){

          this.setData({
      focus:false
    })
    this.setData({
           isShowView:true
    })
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    console.log(options);
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  }
})